import request from '@/util/ajax.js'

export function getUsersAPI(reqData) {
  return request({
    url: '/back_front/users/getService',
    method: 'get',
    params: reqData
  })
}

export function getUsersAllAPI() {
  return request({
    url: '/back_front/users/getAllService',
    method: 'get'
  })
}

export function createUserAPI(reqData) {
  return request({
    url: '/back_front/users/createService',
    method: 'post',
    data: reqData
  })
}

export function synchronizeUsersAPI() {
  return request({
    url: '/back_front/users/synchronizeUsersService',
    method: 'get'
  })
}

export function editUserAPI(reqData) {
  return request({
    url: '/back_front/users/editService',
    method: 'post',
    data: reqData
  })
}

export function getFpTempAPI(reqData) {
  return request({
    url: '/back_front/users/getFpTempByUserService',
    method: 'get',
    params: reqData
  })
}

export function createFpTempAPI(reqData) {
  return request({
    url: '/back_front/users/createFpTempService',
    method: 'post',
    data: reqData
  })
}

export function editFpTempAPI(reqData) {
  return request({
    url: '/back_front/users/editFpTempService',
    method: 'post',
    data: reqData
  })
}
